package com.my.factory.AbstractFactory.product;

/**
 * com.my.factory.AbstractFactory.product
 * linwenjie
 * 2019-06-10
 * 抽象工厂方法测试类
 */
public class AbstractFactoryTest {
    public static void main(String[] args) {
        AbstractFactory factory = new ProductFactory1();
        ProductA productA = factory.createProductA();
        ProductB productB = factory.createProductB();

        productA.featrue();
        productB.feature();
    }
}
